<%@ page language="java" contentType="text/html;charset=utf-8" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<h2>Seznam rozhovorů</h2>

<c:if test="${!outcome_msg_ms}">
	<p>${outcome_msg_ms}</p>
</c:if>

<table cellspacing="3">
	<c:if test="${not empty seznamMonitoru}">
		<c:set var="iterator" value="1" />
		<c:forEach var="monitor" items="${seznamMonitoru}">
			<tr>
				<td><c:out value="${iterator}" /></td>
				<td><a href="Monitors?monitorId=<c:out value="${monitor.id}" />">${monitor.url}</a></td>
			</tr>
			<c:set var="iterator" value="${iterator + 1}" />
		</c:forEach>
	</c:if>

	<c:if test="${not empty monitorDleId}">
		<c:set var="iterator" value="1" />
		<c:forEach var="sentence" items="${monitorDleId.listSentences}">
			<tr>
				<td><c:out value="${iterator}" /></td>
				<td>${sentence.type}</td>
				<td>${sentence.content}</td>
			</tr>
			<c:set var="iterator" value="${iterator + 1}" />
		</c:forEach>
	</c:if>
</table>
